{% extends "base.html" %}
{% block title %}员工信息查询{% endblock %}
{% block content %}
    <table class="staff_table">
        <caption>员工信息表</caption>
        <tr class="row_head">
            <th class="st_name">姓名</th>
            <th class="st_gender">性别</th>
            <th class="st_popo">popo</th>
            <th class="st_group">所在组</th>
            <th class="st_leader">组长</th>
            <th class="st_popo">组长popo</th>
        </tr>
        {% for rec in record %}
        <tr class="row_{{loop.cycle('odd','even')}}">
            <td>{{rec['name']}}</td>
            <td>{{'男' if rec['gender']=='M' else '女'}}</td>
            <td>{{rec['popo']}}</td>
            <td>{{rec['group_name'] if rec['group_name'] else '未分组'}}</td>
            <td>{{rec['leader_name'] if rec['leader_name'] else '-'}}</td>
            <td>{{rec['leader_popo'] if rec['leader_popo'] else '-'}}</td>
        </tr>
        {% endfor %}
    </table>
{% endblock %}
